package com.youyun56.gps.android.pojo;

import com.youyun56.gps.android.commands.CommandType;

public class SearchObject {

    private Integer fromCity = -1;
    private Integer toCity = -1;
    private Integer targetCity;
    private String gsHearvyType;
    private Float hearvyFrom;
    private Float hearvyEnd;
    private String gsHearvyUnin;
    private Float gsFromMi;
    private Float gsEndMi;
    private String gsCarType;

    public Integer getFromCity() {
        return fromCity;
    }

    public void setFromCity(Integer fromCity) {
        this.fromCity = fromCity;
    }

    public Integer getToCity() {
        return toCity;
    }

    public void setToCity(Integer toCity) {
        this.toCity = toCity;
    }

    public Integer getTargetCity() {
        return targetCity;
    }

    public void setTargetCity(Integer targetCity) {
        this.targetCity = targetCity;
    }

    public String getGsHearvyType() {
        return gsHearvyType;
    }

    public void setGsHearvyType(String gsHearvyType) {
        this.gsHearvyType = gsHearvyType;
    }

    public Float getHearvyFrom() {
        return hearvyFrom;
    }

    public void setHearvyFrom(Float hearvyFrom) {
        this.hearvyFrom = hearvyFrom;
    }

    public Float getHearvyEnd() {
        return hearvyEnd;
    }

    public void setHearvyEnd(Float hearvyEnd) {
        this.hearvyEnd = hearvyEnd;
    }

    public String getGsHearvyUnin() {
        return gsHearvyUnin;
    }

    public void setGsHearvyUnin(String gsHearvyUnin) {
        this.gsHearvyUnin = gsHearvyUnin;
    }

    public Float getGsFromMi() {
        return gsFromMi;
    }

    public void setGsFromMi(Float gsFromMi) {
        this.gsFromMi = gsFromMi;
    }

    public Float getGsEndMi() {
        return gsEndMi;
    }

    public void setGsEndMi(Float gsEndMi) {
        this.gsEndMi = gsEndMi;
    }

    public String getGsCarType() {
        return gsCarType;
    }

    public void setGsCarType(String gsCarType) {
        this.gsCarType = gsCarType;
    }

    @Override
    public String toString() {
        // targetCity : $("#currCityId").text(),
        // toCity : fsToCity,
        // fromCity : fsFromCity,
        // gsHearvyType : gsHearvyType,
        // hearvyFrom : hearvyFrom,
        // hearvyEnd : hearvyEnd,
        // gsHearvyUnin : gsHearvyUnin,
        // gsFromMi : gsFromMi,
        // gsEndMi : gsEndMi,
        // gsCarType : gsCarType
        StringBuilder sb = new StringBuilder();
        sb.append("targetCity=").append(targetCity).append(CommandType.AND);
        sb.append("toCity=").append(toCity).append(CommandType.AND);
        sb.append("fromCity=").append(fromCity).append(CommandType.AND);
        sb.append("gsHearvyType=").append(gsHearvyType != null ? gsHearvyType : "").append(CommandType.AND);
        sb.append("hearvyFrom=").append(hearvyFrom != null ? hearvyFrom : "").append(CommandType.AND);
        sb.append("hearvyEnd=").append(hearvyEnd != null ? hearvyEnd : "").append(CommandType.AND);
        sb.append("gsHearvyUnin=").append(gsHearvyUnin != null ? gsHearvyUnin : "").append(CommandType.AND);
        sb.append("gsFromMi=").append(gsFromMi != null ? gsFromMi : "").append(CommandType.AND);
        sb.append("gsEndMi=").append(gsEndMi != null ? gsEndMi : "").append(CommandType.AND);
        sb.append("gsCarType=").append(gsCarType != null ? gsCarType : "");
        return sb.toString();
    }

}
